package org.jeecg.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.system.entity.CrawlWebsite;
import org.jeecg.modules.system.mapper.CrawlWebsiteMapper;
import org.jeecg.modules.system.service.IScrawlWebsiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author wt
 * @Date: 2024/9/24 13:33
 * @Description:
 */
@Service
public class IScrawlWebsiteServiceImpl  extends ServiceImpl<CrawlWebsiteMapper, CrawlWebsite> implements IScrawlWebsiteService {
    @Autowired
    CrawlWebsiteMapper crawlWebsiteMapper;

    /**
     * 新增
     * @return 结果
     */
    @Override
    public int insertCrawlWebsite(CrawlWebsite crawlWebsite)
    {
        return crawlWebsiteMapper.insertCrawlWebsite(crawlWebsite);
    }


    @Override
    public int deleteWebsite(Long id) {
        return crawlWebsiteMapper.deleteWebsite(id);
    }

    @Override
    public int deleteBatchWebsite(Long[] ids)
    {
        return crawlWebsiteMapper.deleteBatchWebsite(ids);
    }

}
